#!/usr/bin/env python3
# _*_coding:utf-8_*_
# cockroach
# email:donnie.fan@foxmail.com

import pickle

account = {
  "name": "范洪涛",
  "id": 18611044558,
  "password":"fanhongtao",
  "credit":15000,
  "balance":15000,
  "expire_date":"2021-01-01",
  "enroll_date":"2016-01-02",
  "status":"0"
}

# f = open("access.db",'wb')
#
# pickle.dump(account,f)
#
# f.close()


f = open("access.db", 'rb')

user_info = pickle.loads(f.read())

f.close()

print(user_info)

# user_info['balance'] -= 1000
#
# print(user_info)
#
# f = open("access.db",'wb')
#
# pickle.dump(user_info,f)
#
# f.close()





